package com.hhf.feiojquestionservice.model.dto.question;

import com.hhf.feiojcommonservice.model.dto.JudgeCase;
import com.hhf.feiojcommonservice.model.dto.JudgeConfig;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 编辑请求
 *
 * @author hhf
 * @data 2024/9/26
 */
@Data
public class QuestionEditRequest implements Serializable {

    /**
     * id
     */
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 标签列表（json 数组）
     */
    private List<String> tags;

    /**
     * 问题答案
     */
    private String answer;


    /**
     * 问题用例(json数组)[{input:"",output:""},{input:"",output:""}]
     */
    private List<JudgeCase> judgeCase;

    /**
     * 问题配置(json对象){"timeLimit": 1000,"memoryLimit": 1000,"stackLimit":1000}
     */
    private JudgeConfig judgeConfig;


    private static final long serialVersionUID = 1L;
}